﻿using Syntec.Remote;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WindowsFormsApp2
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            SyntecRemoteCNC cnc = new SyntecRemoteCNC("192.168.1.211");
            int CurSeq = 0;
            string MainProg = "", CurProg = "", Mode = "", Status = "", Alarm = "", EMG = "";

            short result = cnc.READ_status(out MainProg, out CurProg, out CurSeq, out Mode, out Status, out Alarm, out EMG);
            MessageBox.Show(result.ToString());
        }
    }
}
